
<form action="" method="POST">
    <div class="panel panel-primary">
        <div class="panel-heading">Quản Lý Menu</div>
        <div style="padding: 10px;text-align: right;">
            <a class="btn btn-primary" href="<?php echo $template->url->getLink('admin/menu/add'); ?>">Thêm Mới</a>
            <button class="btn btn-primary" type="submit">Xóa</button>
        </div>
        <table class="table">
            <thead>
                <tr>
                    <th><input type="checkbox"></th>
                    <th>Title</th>
                    <th>Menu Cha</th>
                    <th>Url</th>
                    <th>Action</th>
                </tr>
            </thead>
            <tbody>
                <?php foreach($template->get('aMenus') as $oMenu) : ?>
                    <tr>
                        <th><input type="checkbox" name="val[id][]" value="<?php echo $oMenu->menu_id; ?>"></th>
                        <td><?php echo $oMenu->title; ?></td>
                        <td><?php echo $oMenu->parent_menu_name; ?></td>
                        <td><?php echo $oMenu->url; ?></td>
                        <td><a href="<?php echo $template->url->getLink('admin/menu/edit/'.$oMenu->menu_id); ?>" class="btn btn-danger">Edit</a></td>
                    </tr>
                    <?php endforeach; ?>
            </tbody>
        </table>
    </div>
</form>